package com.yulongtian.weekCompetition.month202301.week02;

/**
 * 第 327 场周赛
 * 可
 *
 * @author yulongTian
 * @create 2023-01-08 10:30
 */
public class Test01 {
    public static void main(String[] args) {

    }

    public static int maximumCount(int[] nums) {
        int zhengCount = 0;
        int fuCount = 0;
        for (int num : nums) {
            if (num < 0) {
                fuCount++;
            }
            if (num > 0) {
                zhengCount++;
            }
        }
        return Math.max(zhengCount, fuCount);
    }
}
